<?php

declare(strict_types=1);

namespace App\Controller\WebApi\v1;

use App\Controller\AbstractController;
use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Service\MemberService\MemberService;

class MemberController extends AbstractController
{
    /**
     * Inject()
     * @var MemberService
     */
    protected $memberService;

     /**
     * 登录
     * @RequestMapping(path="mobile", methods="post")
     */
    public function mobile(RequestInterface $request)
    {
        return $this->memberService->editMobile(
            (string) $request->input('mobile'),
            (string) $request->input('code'),
            28327
        );
        
    }
    
}
